package cn.sumpu.app.coolsk.biz;

import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import cn.sumpu.app.coolsk.domain.Discuss;
import cn.sumpu.app.coolsk.exception.AppBusinessException;
import cn.sumpu.toolkit.common.page.PageModel;

public interface DiscussBiz {
	/**
	 * 
	 * @param pageSize
	 * @param page
	 * @return 查询所有的点评
	 * @throws AppBusinessException
	 */
	public PageModel getAllDiscuss(Integer pageSize, Integer page,String memberId) throws AppBusinessException;
	//
	public Discuss getDiscussById(String id)throws AppBusinessException;
	//
	public void updateDisById(String id,String isAudit)throws AppBusinessException;
	//
	public void pointByAduitDis(Integer point,String member)throws AppBusinessException;
	
	public void insterDis(Discuss discuss)throws AppBusinessException ;
	/**
	 * author BruceZhang
	 * @param request
	 * 取得点评首页的内容
	 * @throws AppBusinessException
	 */
	void getIndexReview(HttpServletRequest request)throws AppBusinessException;
	//底层页点评
	public List<Discuss> getDiscussListByObj(Map<String, Object> map)throws AppBusinessException;
	public int getDiscussCountByObj(Map<String, Object> map)throws AppBusinessException;

}
